package com.xiaohu.myspace.database.entity;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * ProductInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "PRODUCT_INFO", catalog = "myspace")
public class ProductInfo extends BaseEntity  {

	private static final long serialVersionUID = 6340239558735611252L;
	// Fields

	private Integer id;
	private String productName;
	private Integer productType;
	private String productDescripte;
	private Integer userId;
	private Integer productUpDown;
	private String productPictureUrl;
	private Double productPrice;
	private Integer showId;

	// Constructors

	/** default constructor */
	public ProductInfo() {
	}

	/** minimal constructor */
	public ProductInfo(String productName, Integer productType,
			String productDescripte, Integer userId, Integer showId) {
		this.productName = productName;
		this.productType = productType;
		this.productDescripte = productDescripte;
		this.userId = userId;
		this.showId = showId;
	}

	/** full constructor */
	public ProductInfo(String productName, Integer productType,
			String productDescripte, Integer userId, Integer productUpDown,
			String productPictureUrl, Double productPrice, Integer showId) {
		this.productName = productName;
		this.productType = productType;
		this.productDescripte = productDescripte;
		this.userId = userId;
		this.productUpDown = productUpDown;
		this.productPictureUrl = productPictureUrl;
		this.productPrice = productPrice;
		this.showId = showId;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "product_name", nullable = false, length = 50)
	public String getProductName() {
		return this.productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	@Column(name = "product_type", nullable = false)
	public Integer getProductType() {
		return this.productType;
	}

	public void setProductType(Integer productType) {
		this.productType = productType;
	}

	@Column(name = "product_descripte", nullable = false, length = 100)
	public String getProductDescripte() {
		return this.productDescripte;
	}

	public void setProductDescripte(String productDescripte) {
		this.productDescripte = productDescripte;
	}

	@Column(name = "user_id", nullable = false)
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "product_up_down")
	public Integer getProductUpDown() {
		return this.productUpDown;
	}

	public void setProductUpDown(Integer productUpDown) {
		this.productUpDown = productUpDown;
	}

	@Column(name = "product_picture_url", length = 50)
	public String getProductPictureUrl() {
		return this.productPictureUrl;
	}

	public void setProductPictureUrl(String productPictureUrl) {
		this.productPictureUrl = productPictureUrl;
	}

	@Column(name = "product_price", precision = 22, scale = 0)
	public Double getProductPrice() {
		return this.productPrice;
	}

	public void setProductPrice(Double productPrice) {
		this.productPrice = productPrice;
	}

	@Column(name = "show_id", nullable = false)
	public Integer getShowId() {
		return this.showId;
	}

	public void setShowId(Integer showId) {
		this.showId = showId;
	}

}